package com.mysiteforme.admin.entity;


import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.util.Date;

@Data
public class ExcelImport {

    @Excel(name = "测试标题")
    private String title;

    //可以自动替换excel中内容
//    @Excel(name = "中英文类型", replace = {"中文_CN", "英文_EN"})
//    private String type;

    @Excel(name = "值")
    private String value;

    @Excel(name = "日期",format = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    public ExcelImport(String title, String value, Date date) {
        this.title = title;
        this.value = value;
        this.date = date;
    }
}
